package com.project.bean;

import java.util.List;

/**
 * 用户表
 */
public class UserBean {
    /**用户id*/
    private int id;
    /**用户登录名*/
    private String code;
    /**用户密码，默认666*/
    private String pwd = "666";
    /**用户真是姓名*/
    private String name;
    /**用户的角色集合*/
    private List<RoleBean> userRole;
    /**用户的权限集合*/
    private List<RootBean> userRoot;


    public List<RootBean> getUserRoot() {
        return userRoot;
    }

    public void setUserRoot(List<RootBean> userRoot) {
        this.userRoot = userRoot;
    }

    public UserBean() {
        System.out.println("$$$$$$$$");
    }

    public UserBean(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<RoleBean> getUserRole() {
        return userRole;
    }

    public void setUserRole(List<RoleBean> userRole) {
        this.userRole = userRole;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                ", userRole=" + userRole +
                ", userRoot=" + userRoot +
                '}';
    }

}
